mcN = "letter"; waitCharEnd = 1; loop = 0; loopDelay = 0; aLetters = new Array(); for (i = 0; i< numChar; i++) { aLetters[i+0] = i; var letter = this[mcN +i]; letter._visible = false; letter.init = letterInit; letter.doEffect = effect; letter.number = i; } function letterInit() { this._visible = false; } function effect() { this._visible = true; this.gotoAndStop("end"); } function shuffle() { return Math.floor(Math.random() * 3) -1; } if (random == 1) { aLetters.sort(shuffle); } if (reverse == 1) { aLetters.reverse(); }